Skip to content

Fancybox

Fancybox is the ultimate JavaScript lightbox alternative that sets the standard for premium user experience in multimedia display. It is built using TypeScript for use with various modern application frameworks (React, Vue, etc) or simply with pure Javascript.

It uses the Carousel component under the hood, and the Panzoom component is used to make the images interactive.

Key Features

  • Support for images, iframes, Ajax, videos and any other HTML content
  • Automatic detection and display of YouTube, Vimeo videos and Google Maps
  • Swipe, drag and pinch-to-zoom gestures
  • Fully customizable toolbar with optional transformation controls
  • Three types of thumbnails
  • Mouse panning
  • Multiple active instances at the same time
  • Many configuration options including CSS transitions, RTL, etc.
  • Hash navigation
  • Compact mode plugin to mimic the mobile Photos app experience
  • Sidebar plugin to easily create a two-column layout New

Examples

Gallery picture #1Gallery picture #2Gallery picture #3Gallery picture #4Gallery picture #5Gallery picture #6

Transformation controls

Transformation picture #1Transformation picture #2Transformation picture #3

Mouse panning

Panning picture #1Panning picture #2Panning picture #3Panning picture #4

Videos

Video poster #1Video poster #2Video poster #3

Various

RTL

Sample picture #1Sample picture #2Sample picture #3

Compact Mode

The Compact Mode plugin mimics the experience of the Photos mobile app. Resize the window to see the effect - by default, it's enabled when any of the window dimensions are smaller than 578 pixels.

Compact mode picture #1Compact mode picture #2Compact mode picture #3

The Sidebar plugin creates a two-column layout with a sidebar that displays each slide's caption or custom HTML content.

Sidebar picture #1Sidebar picture #2Sidebar picture #3

There is no need to take any additional steps to combine Carousel with Fancybox. They will sync automatically, no additional code is required.

JS Bin Example